<?

require_once ("template.iface.inc");

global $_OBJECT_IFACE_MAIN;

global $_OBJECT_IFACE_CUSTOMER_PANEL;

$_OBJECT_CUSTOMER_PANEL = _app_create_iface_panel ();

global $_OBJECT_CUSTOMER_OPTIONS;

$_OBJECT_CUSTOMER_OPTIONS = new Container ();
$_OBJECT_CUSTOMER_OPTIONS->set_callback_begin ("_app_customer_options_begin");
$_OBJECT_CUSTOMER_OPTIONS->set_callback_end ("_app_customer_options_end");

global $_OBJECT_MAIN_MENU;

$_OBJECT_MAIN_MENU = new Container ();
$_OBJECT_MAIN_MENU->set_callback_begin ("_app_iface_main_menu");
$_OBJECT_MAIN_MENU->set_option ("callback_end", false);
#$_OBJECT_MAIN_MENU->set_callback_begin ("_app_iface_main_menu_begin");
#$_OBJECT_MAIN_MENU->set_callback_end ("_app_iface_main_menu_end");


global $_APP_GLOBAL_CONSOLE_MENU;

/* require_once ("application.menu.inventory.control.inc");
require_once ("application.menu.order.management.inc");

foreach ($_APP_GLOBAL_CONSOLE_MENU as $key => $val) {

	$_OBJECT_MAIN_MENU->insert_container (_app_iface_navigation ());
} */


$_OBJECT_CUSTOMER_PANEL->insert_container ($_OBJECT_CUSTOMER_OPTIONS);
$_OBJECT_IFACE_MAIN->insert_container ($_OBJECT_CUSTOMER_PANEL);
$_OBJECT_IFACE_MAIN->insert_container ($_OBJECT_MAIN_MENU);

function _app_customer_options_begin ($container) {
	print <<<HTML
Begin Some Customer Management Links Here<br>
HTML;
}

function _app_customer_options_end ($container) {
	print <<<HTML
End Some Customer Management Links Here<br>
HTML;
}

function _app_iface_main_menu ($container) {
	include_once ("console.php");
}
/* function _app_iface_main_menu_begin ($container) {
	//require_once ("console.php");
	print <<<HTML

<link href="css/vmc_main.css" rel="stylesheet" type="text/css"></link>
<div class="vmc_main_console">
	<div id="vmc_main_menu" class="vmc_main_console_panel vmc_center">

HTML;
}
function _app_iface_main_menu_end ($container) {
	print <<<HTML
        </div><!-- end vmc_main_console_panel -->

	</div><!-- end vmc_main_console -->

HTML;
} */
?>
